package com.baiyang.app.ui.read.commentList;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.alibaba.fastjson.JSONObject;

public class CommentViewModel extends ViewModel {

    private MutableLiveData<JSONObject> commentLists;

    public CommentViewModel(){
        this.commentLists = new MutableLiveData<>();
    }

    public void setCommentLists(JSONObject commentLists) {
        this.commentLists.postValue(commentLists);
    }

    public LiveData<JSONObject> getCommentLists(){
        return commentLists;
    }
}
